import request from '@/utils/request'

// 查询经方列表
export function listJingfang(query) {
  return request({
    url: '/yljf/jingfang/list',
    method: 'get',
    params: query
  })
}

// 查询经方详细
export function getJingfang(id) {
  return request({
    url: '/yljf/jingfang/' + id,
    method: 'get'
  })
}

// 新增经方
export function addJingfang(data) {
  return request({
    url: '/yljf/jingfang',
    method: 'post',
    data: data
  })
}

// 修改经方
export function updateJingfang(data) {
  return request({
    url: '/yljf/jingfang',
    method: 'put',
    data: data
  })
}

// 删除经方
export function delJingfang(id) {
  return request({
    url: '/yljf/jingfang/' + id,
    method: 'delete'
  })
}
